<?php

/**
 * This file is part of the Pagizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Pagizer Core Team <team@pagizer.org>
 * @package     pagizer
 * @subpackage  website
 */

class m_website_views_block_TabPagePropertiesSuccessView extends f_core_View
{
	public function execute()
	{	
		$templateEngine = f_template_Template::getInstance()->disableCache();
		
		$templateEngine->setModuleTemplate("website", "back/block/TabPageProperties.html");

		$templateEngine->assign("templates", $this->getModel("templates"));
		$templateEngine->assign("indexMenu", $this->getModel("indexMenu"));
		$templateEngine->assign("page", $this->getModel("page"));
		$templateEngine->assign("tmpPage", $this->getModel("tmpPage"));
        $templateEngine->assign("pageToSwitch", $this->getModel("page")->getPageToSwitch());
		$templateEngine->assign("error", $this->getModel("errors"));
		$templateEngine->assign("errorPages", $this->getModel("errorPages"));
		$templateEngine->assign("formValues", $this->getModel("formValues"));
		$templateEngine->assign("users", $this->getModel("users"));
		
		return $templateEngine->renderDisplay();
	}
}